package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {
    @Select("select tp.keyword from t_role_permission trp,t_permission tp where trp.permission_id = tp.id and trp.role_id = #{roleId}")
    List<Permission> findPermissionsByRoleId(Integer roleId);
}
